﻿using CRM.Admin.Contracts.Model.Customer;
using KingsSharp.Core.Data.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CRM.Admin.Services.EntityConfigurations.Customer
{
    /// <summary>
    /// 品种年需求配置文件
    /// </summary>
    public  class VarietyYearCfg: EntityConfigurationBase<VarietyYear,Guid>
    {
        public VarietyYearCfg()
        {
            HasRequired(t => t.Customer).WithMany().HasForeignKey(f => f.CustomerId);

            Property(t => t.BreedName).HasMaxLength(200);

            Property(t => t.DemandSourcesName).HasMaxLength(200);

            Property(t => t.DevelopmentProfiles).HasMaxLength(2000);

            Property(t => t.GetMaterialUser).HasMaxLength(80);

            Property(t => t.MaterialMade).HasMaxLength(800);

            Property(t => t.MarketingStrategy).HasMaxLength(2000);




            Property(t => t.MaterialProfiles).HasMaxLength(800);

            Property(t => t.MaterialSpecs).HasMaxLength(200);

            Property(t => t.MaterialWeight).HasPrecision(18, 2);

            Property(t => t.MaterialHeight).HasPrecision(18, 2);

            Property(t => t.MaterialWidth).HasPrecision(18, 2);

            Property(t => t.MaterialThickness).HasMaxLength(100);

            Property(t => t.NewProductProfiles).HasMaxLength(800);

            Property(t => t.NewUserProfiles).HasMaxLength(800);

            Property(t => t.NextNeedProfiles).HasMaxLength(800);

            Property(t => t.NextYearNeedProfiles).HasPrecision(18,2);
            Property(t => t.NoCooperateProfiles).HasMaxLength(800);
            Property(t => t.NowNeedWeight).HasPrecision(18, 2);

            Property(t => t.NowSupply).HasMaxLength(200);

            Property(t => t.PGFAlreadySupplyWeight).HasPrecision(18, 2);

            Property(t => t.PGFCoverWeight).HasPrecision(18, 2);
            Property(t => t.PGAlreadySupplyWeight).HasPrecision(18, 2);
            Property(t => t.PGCoverWeight).HasPrecision(18, 2);
            Property(t => t.PriceMoreEvaluate).HasMaxLength(200);
            Property(t => t.QualityProfiles).HasMaxLength(800);
            Property(t => t.SaleFeasibility).HasMaxLength(2000);
            Property(t => t.XGFAlreadySupplyWeight).HasPrecision(18, 2);
            Property(t => t.XGFCoverWeight).HasPrecision(18, 2);
            Property(t => t.YearNeedProfiles).HasPrecision(18, 2);
        }
    }
}
